<script setup>
import {
  defineProps,
  defineEmits,
  getCurrentInstance,
  toRefs,
  ref,
  reactive,
} from "vue";

import api from "../../api/apis/user";
// 获取当前组件实例
const { proxy } = getCurrentInstance();
const props = defineProps({
  id: Number,
});

// const data = reactive({
//   btn: null,
// });

const btn = ref(null);
</script>

<template>
  <!-- 父子组件传值 -->
  <div @click="gets">sss asdasdas</div>
  <div ref="btn">子组件{{ id }}</div>
  <el-button type="success" @click="getSon"> 传给父组件</el-button>
</template>


<style lang="less" scoped>
</style>